<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>全部订单</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/index.css" />
</head>
<body> 
<div class="order">
    <div class="tabber tabber02">
        <!--<span class="on">全部</span><span>待付款</span><span>待核销</span><span>已核销</span><span>已评价</span>-->
        <span class="<?=$state==''?'on':''?>" onClick="window.location='__MODULE__/ExchangeOrder/'">全部</span>
        <span class="<?=$state=='0'?'on':''?>" onClick="window.location='__MODULE__/ExchangeOrder/index/state/0'">待付款</span>
        <span class="<?=$state==1?'on':''?>" onClick="window.location='__MODULE__/ExchangeOrder/index/state/1'">待核销</span>
        <span class="<?=$state==2?'on':''?>" onClick="window.location='__MODULE__/ExchangeOrder/index/state/2'">已核销</span>
        <span class="<?=$state==3?'on':''?>" onClick="window.location='__MODULE__/ExchangeOrder/index/state/3'">已评价</span>
        <span class="<?=$state==4?'on':''?>" onClick="window.location='__MODULE__/ExchangeOrder/index/state/4'">已失效</span>
    </div>
    <div class="orderlist">
    	<div class="block">
            <ul>
                <volist name="list" id="vo">
                <li>
                	<div class="tit">
                        订单状态
                        <span>
                            <eq name="vo.state" value="0">等待买家付款</eq>
                            <eq name="vo.state" value="1">买家已付款</eq>
                            <eq name="vo.state" value="2">已核销</eq>
                            <eq name="vo.state" value="3">已评价</eq>
                            <eq name="vo.state" value="4">已失效</eq>
                        </span>
                    </div>
                    <div class="pro" onClick="window.location='__CONTROLLER__/info/id/{$vo.id}/'">
                        <div class="pic"><img src="<?=isMorePic($vo['head_img'])?>"/></div>
                        <div class="name">
                            <h2>
                                <b class="<?=$vo['eg_u_id']!=0?'md':'pp'?>"><?=$vo['eg_u_id']!=0?'门店':'品牌'?></b>
                                <?=msubstr($vo['title'],25)?> {$vo.u_num}<?=getunit($vo['unit'])?>
                            </h2>
                            <h6 style="color:#666;">市场参考价：￥{$vo.eg_price}元</h6>
                            <h3 style="height:20px; line-height:20px;">
                                <em style="font-size:14px;">
                                    <if condition="($vo['total_fee'] neq '0.00') OR ($vo['card_fee'] neq '0.00')">
                                        ￥<?=$vo['total_fee']!=0.00?$vo['total_fee']:$vo['card_fee']?>元
                                        <notempty name="vo.level_integral">
                                            + {$vo.level_integral}积分
                                        </notempty>
                                        <else />
                                        {$vo.level_integral}积分
                                    </if>
                                </em>
                                <b class="sl" style="padding-top:0;">X1</b>
                            </h3>
                        </div>
                    </div>
                    <div class="total">
                        共<b>1</b>件商品
                        <span>
                            合计：<i>
                            <if condition="($vo['total_fee'] neq '0.00') OR ($vo['card_fee'] neq '0.00')">
                                ￥<?=$vo['total_fee']!=0.00?$vo['total_fee']:$vo['card_fee']?>元
                                <notempty name="vo.level_integral">
                                    + {$vo.level_integral}积分
                                </notempty>
                                <else />
                                {$vo.level_integral}积分
                            </if>
                            </i>
                        </span>
                    </div>
                    <div class="button">
                        <input type="button" value="查看订单"  onClick="window.location='__CONTROLLER__/info/id/{$vo.id}/'" style="background:#fff; border:1px #666666 solid; margin-right:10px; color:#666;"/>
                    </div>
                </li>
                </volist>

            </ul>
        </div>
    </div>
</div>
	<script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.9.1.js"></script>
	<script type="text/javascript">
		$('.tabber span').click(function(){ 
			$(this).addClass("on").siblings().removeClass() 
			$(".orderlist>.block").hide().eq($('.tabber span').index(this)).show(); 
		});
		$(document).ready(
			function()
			{
				$('.notes').delay(3000).hide(0);
			}
		);
	</script>
</body>
</html>